package com.day22;

public class Test {
    public static void main(String[] args) {
        People p=new People();//实例化类，再通过p调用方法
        p.work();
        String s;
        s=p.eat("哈密瓜");
        System.out.println(p.work());
        System.out.println(s);
        System.out.println(p.eat("西瓜"));
    }
}
